package com.lenovo.interceptor.tools;

import javax.servlet.http.Cookie;

/**
 * @Descpription
 * @Author CJF
 * @Date 2019/2/27 14:18
 **/
public class GetCookieVallue {
    public static Object getValueByName(Cookie[] cookies, String name) {
        for (Cookie e : cookies) {
            if (e.getName().equals(name)) {
                return e.getValue();
            }
        }
        return null;
    }
}
